#ifndef _LOGIN_WIDGET_H_
#define _LOGIN_WIDGET_H_


#include <QWidget>
#include <QSet>
#include "verrorpromptlabel.h"

class VPushButton;
class VLineEdit;
class VSwitchInterfaceButton;
class VErrorPromptLabel;

class VLoginWidget :public QWidget
{
    friend class VLaunchWidget;
    Q_OBJECT
public:
    VLoginWidget(QWidget* parent = nullptr);
    ~VLoginWidget();
private slots:
    void initConnect();
    void onLineEditAccountFormatError(QSet<ERRORTYPE>);
    void initLineEdit();
    void initLoginButton();
    void onLoginButtonReleased(); //

private:
    VPushButton*  m_pButtonLogin;
    VLineEdit*     m_pLineEditAccount;
    VLineEdit*     m_pLineEditPassword;
    VSwitchInterfaceButton* m_pButtonSwitchLoginWidget;
    VErrorPromptLabel* m_pLabelErrorPrompt;
    VSwitchInterfaceButton* m_pButtonSwitchReviseWidget;
};

#endif //_LOGIN_WIDGET_H_